package com.galaxy.device.domain;

import com.alibaba.nacos.shaded.com.google.protobuf.FieldType;
import lombok.Data;
import org.dromara.easyes.annotation.IndexField;
import org.dromara.easyes.annotation.IndexId;
import org.dromara.easyes.annotation.IndexName;
import org.elasticsearch.common.geo.GeoPoint;

import java.util.Date;

/**
 * 设备ES实体类
 */
@Data
@IndexName("device")
public class DeviceEs {

    /**
     * 设备ID
     */
    @IndexId
    private String deviceId;

    /**
     * 设备名称
     */
    @IndexField
    private String deviceName;

    /**
     * 站点ID
     */
    @IndexField
    private String siteId;

    /**
     * 站点名称
     */
    @IndexField
    private String siteName;

    /**
     * 设备位置
     */
    @IndexField
    private GeoPoint location;

    /**
     * 创建时间
     */
    @IndexField
    private String createTime;

    /**
     * 更新时间
     */
    @IndexField
    private String updateTime;
}
